package absfactory;

/**
 * 功能:
 * 作者: ldl
 * 时间: 2016-08-15 15:06
 */
public class Main {

    public static void main(String[] args) {

        IUser user = DataAccess.createUser();
        assert user != null;
        user.insert(new User());
        user.getUser(1);

        IDepartment department = DataAccess.createDepartment();
        assert department != null;
        department.getDepartment(1);
        department.insert(new Department());
    }
}
